<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{% block title %}
    {% endblock %}
    </title>
    <link rel="stylesheet" type="text/css" href="/static/bootstrap/css/bootstrap.min.css"/>
    <script src="/static/bootstrap/jquery.js" type="text/javascript" charset="utf-8"></script>
    <script src="/static/bootstrap/js/bootstrap.js" type="text/javascript" charset="utf-8"></script>
</head>
<body style="background: url(/static/basefile/bg.jpg);background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;"  >
<div class="container"  >
        <div class="row">
            <div class="col-md-12">
                <nav class="navbar navbar-fixed-top bg-warning">
                    <div class="container-fluid">
                        <!-- Brand and toggle get grouped for better mobile display -->
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                            <a class="navbar-brand" href="{% url 'home' %}">NiceNovel</a>
                        </div>

                        <!-- Collect the nav links, forms, and other content for toggling -->
                        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                            <ul class="nav navbar-nav">
                                <li><a href="{% url 'hot' %}">热门</a></li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-haspopup="true" aria-expanded="false">分类 <span class="caret"></span></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="{% url 'getcategory' category='classic' %}">经典</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='languages' %}">双语</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='science' %}">科幻</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='celebrity' %}">名人</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='children' %}">儿童</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='inspiring' %}">励志</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='religion' %}">宗教</a></li>
                                        <li role="separator" class="divider"></li>
                                        <li><a href="{% url 'getcategory' category='short' %}">短片</a></li>

                                    </ul>
                                </li>
                            </ul>

                            <form class="navbar-form navbar-left" action="{% url 'inputsearchtest' %}" method="get">
                                <div class="form-group">
                                    <input type="text" name="keyword" class="form-control" placeholder="请写入书名吧">
                                </div>
                                <button type="submit" class="btn btn-default">找书</button>
                            </form>
                            <ul class="nav navbar-nav navbar-right">
                                <li><a href="#">反馈</a></li>
                                <li class="dropdown">
                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button"
                                       aria-haspopup="true" aria-expanded="false">用户 <span class="caret"></span></a>
                                    <ul class="dropdown-menu">
                                        <li><a href="{% url 'collectionlist' %}">书架</a></li>
                                        <li><a href="{% url 'wordlist' %}">单词本</a></li>
                                        <li><a href="{% url 'recordlist' %}">浏览记录</a></li>
                                        {% if userid == None %}
                                            <li><a href="{% url 'formsignin' %}">登录</a></li>
                                        {% else %}
                                            <li><a href="{% url 'formsignin' %}">{{ userid }}</a></li>
                                        {% endif %}

                                    </ul>
                                </li>
                            </ul>
                        </div><!-- /.navbar-collapse -->
                    </div><!-- /.container-fluid -->
                </nav>
            </div>
        </div>
        <br><br><br><br>

        <div class="row">
            <div class="col-md-2">
            </div>
            <div class="col-md-8">

                    {% block content %}

                    {% endblock %}

            </div>
            <div class="col-md-2">
            </div>
        </div>

    </div>
</body>
{% block js %}

{% endblock %}
</html>

